package com.ivo.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class SaveAdvisor {

	@Before("execution(public * com.ivo.service.pdm.RoleService.get*(..))")
	public void before() {
		System.out.println("method [getRoleId] start");
	}
	
	@After("execution(public * com.ivo.service.pdm.RoleService.get*())")
	public void after() {
		System.out.println("method [getRoleId] end");
	}
	
}
